package com.changgou.goods.feign;

import com.changgou.entity.Result;
import com.changgou.goods.pojo.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 查询分类信息的feign接口
 */

@FeignClient(name = "goods")
public interface CategoryFeign {


    //根据分类id查询分类信息
    @GetMapping("/category/{id}")
    public Result<Category> findById(@PathVariable("id") Integer id);
}
